WARNING: This program has a bug and we need to fix it! We're trying to draw a rectangle but it has the wrong height!

RULE: You should use comments to determine which arguments match with which value.

  • Click Run to see what's wrong.
  • Debug the program so that it draws a rectangle with a height of 200.
  • Click Run after you make a change to test your program.


To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)